package com.youlu.campus.entity.ca.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author : [dengbo]
 * @className : CaReceiveSaveDTO
 * @description : [证书领取保存]
 * @createTime : [2022/9/6 17:40]
 */
@Data
public class CaReceiveSaveDTO {
    private String id;
    @NotBlank(message = "证书名称不能为空")
    private String name;
    @NotBlank(message = "链接不能为空")
    private String linkUrl;
    @NotBlank(message = "图片不能为空")
    private String imageUrl;
    @Min(value = 0, message = "优先级要大于等于0")
    private Integer priority = 0;
    @NotNull(message = "是否展示不能为空")
    private Boolean valid;

    /**
     * 活动ID-HPROJ-1616 需求
     */
    private String  activityId;
}
